<template>
	<view style="padding: 20rpx;">
		<view class="detail">
			<view class="title">
				<text>{{itemData.msgTitle}}</text>
			</view>
			<view class="info">
				<view>
					<text>发布日期：{{itemData.createTime&&itemData.createTime.slice(0,10)}}</text>
				</view>
				<view>
					<text>信息来源：{{itemData.organCode}}</text>
				</view>
				<!-- <text>浏览量：233</text> -->
			</view>
			<view class="content">
				<rich-text :nodes="itemData.msgContent"></rich-text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				itemData: {
					msgTitle: "",
					msgCreateTime: "",
					organCode: ""
				}
			}
		},
		methods: {

		},
		onLoad(e) {
			const param = JSON.parse(e.param);
			Object.assign(this.itemData, param)
		}
	}
</script>

<style lang="scss">
	.detail {
		background-color: #FFFFFF;
		border-radius: 10rpx;

		.title {
			text-align: center;
			font-size: 32rpx;
			color: #000000;
			line-height: 44rpx;
			padding: 30rpx 20rpx;
		}

		.info {
			font-size: 20rpx;
			color: #999;
			padding-bottom: 20rpx;
			text-align: center;

			text {
				padding: 0 10rpx;
			}
		}

		.content {
			padding: 30rpx 20rpx;
			border-top: 1rpx solid #EEEEEE;
			min-height: 800rpx;
		}
	}
</style>
